﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Day22EF.Data.Models
{
    public class Power
    {
        public int PowerId { get; set; }
        public string Name { get; set; }

        [Required]
        public string UserId { get; set; }
        [ForeignKey("UserId")]
        public virtual User User { get; set; }

        public int PowerTypeId { get; set; }
        [ForeignKey("PowerTypeId")]
        public virtual PowerType PowerType { get; set; }  //Navigation Property
    }
}
